<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>首页</title>
		<link rel="stylesheet" type="text/css" href="/node_modules/bootstrap/dist/css/bootstrap.css"/>
	</head>
	<body>
		<div class="panel panel-primary">
		  <div class="panel-heading">用户管理</div>
		  <div class="panel-body">
			  <a href="/addpage" class="btn btn-primary">新增</a>
		    <!-- Table -->
		    <table class="table table-bordered table-striped table-hover">
				<thead>
					<th>id</th>
					<th>姓名</th>
					<th>生日</th>
					<th>年龄</th>
					<th>操作</th>
				</thead>
				<tbody>
				{{each users}}
				<tr>
					<td>{{$value.id}}</td>
					<td>{{$value.userName}}</td>
					<td>{{$value.birthday}}</td>
					<td>{{$value.age}}</td>
					<td>
						<a href="/user/editpage?id={{$value.id}}" class="btn btn-link">修改</a> 
						<a href="/delete?id={{$value.id}}" class="btn btn-link">删除</a>
					</td>
				</tr>
				{{/each}}
				</tbody>
		    </table>
		  </div>
		</div>
	</body>
</html>
